package springapp.web.managers;

import java.util.List;
import org.springframework.stereotype.Component;
import springapp.web.data.Tag;
import springapp.web.data.VideoFile;

/**
 * @author sad
 */
@Component
public class TagManager extends BaseManager<Tag> {
    public Tag getTagByCode(String code){
        return (Tag) getCriteriaForFields("code",code).setMaxResults(1).uniqueResult();
    }
}
